﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace lab5
{
    public partial class Form1 : Form
    {
        Collection col = new Collection();

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            col.AddTrack(1);
            labelRock.Text = col.strRock;
            labelMin.Text = col.strMin;
            labelSec.Text = col.strSec;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            col.AddTrack(2);
            labelClassic.Text = col.strClassic;
            labelMin.Text = col.strMin;
            labelSec.Text = col.strSec;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            col.AddTrack(3);
            labelFolk.Text = col.strFolk;
            labelMin.Text = col.strMin;
            labelSec.Text = col.strSec;
        }

        private void button4_Click(object sender, EventArgs e)
        {
            Form2 form2 = new Form2();
            form2.ShowDialog();
            labelDiskName.Text = form2.textBox1.Text;
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Environment.Exit(0);
        }
    }
}
